package com.xja.entity;

/**
 * @projectName: HotelManager
 * @package: com.xja.entity
 * @className: Room
 * @author: WenLiang0214
 * @description:房间实体类
 * @date: 2022/5/5 19:23
 */
public class Room {
    //房间ID
    private Integer roomId;
    //房间种类
    private String roomKind;
    //房间价格
    private Integer roomPrice;
    //房间楼层
    private Integer roomFloor;
    //房间状态
    private Integer roomStatus;
    //房间名字
    private  String roomName;
//全参构造
    public Room(Integer roomId, String roomKind, Integer roomPrice, Integer roomFloor, Integer roomStatus, String roomName) {
        this.roomId = roomId;
        this.roomKind = roomKind;
        this.roomPrice = roomPrice;
        this.roomFloor = roomFloor;
        this.roomStatus = roomStatus;
        this.roomName = roomName;
    }
    //不带ID属性的全参构造

    public Room(String roomKind, Integer roomPrice, Integer roomFloor, Integer roomStatus, String roomName) {
        this.roomKind = roomKind;
        this.roomPrice = roomPrice;
        this.roomFloor = roomFloor;
        this.roomStatus = roomStatus;
        this.roomName = roomName;
    }
    //无参构造

    public Room() {
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getRoomKind() {
        return roomKind;
    }

    public void setRoomKind(String roomKind) {
        this.roomKind = roomKind;
    }

    public Integer getRoomPrice() {
        return roomPrice;
    }

    public void setRoomPrice(Integer roomPrice) {
        this.roomPrice = roomPrice;
    }

    public Integer getRoomFloor() {
        return roomFloor;
    }

    public void setRoomFloor(Integer roomFloor) {
        this.roomFloor = roomFloor;
    }

    public Integer getRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(Integer roomStatus) {
        this.roomStatus = roomStatus;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    @Override
    public String toString() {
        String str=null;
        if (roomStatus==0){
            str = "已入住";
        }else {
            str="有房";
        }
        return "Room{" +
                "roomId=" + roomId +
                ", roomKind='" + roomKind + '\'' +
                ", roomPrice=" + roomPrice +
                ", roomFloor=" + roomFloor +
                ", roomStatus=" + str +
                ", roomName='" + roomName + '\'' +
                '}';
    }
}
